package com.jzo2o.health.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jzo2o.common.model.PageResult;
import com.jzo2o.health.model.domain.Orders;
import com.jzo2o.health.model.dto.request.OrdersPageQueryReqDTO;
import com.jzo2o.health.model.dto.response.AdminOrdersDetailResDTO;
import com.jzo2o.health.model.dto.response.OrdersCountResDTO;
import com.jzo2o.health.model.dto.response.OrdersDetailResDTO;
import com.jzo2o.health.model.dto.response.OrdersResDTO;

import java.util.List;

public interface IOrdersService extends IService<Orders> {
    PageResult<OrdersResDTO> pageQuery(OrdersPageQueryReqDTO ordersPageQueryReqDTO);

    AdminOrdersDetailResDTO aggregation(Long id);

    OrdersCountResDTO countByStatus();

    List<OrdersResDTO> userPageQuery(Integer ordersStatus, Long sortBy);

    OrdersDetailResDTO getByOrderId(Long id);
}
